<?php
	class SystemModel extends Model{
		public $_validate =	array(
				array('webname','0,20','网站名称必须在0-20位之间',Model::MUST_VALIDATE,'length',Model:: MODEL_BOTH),
				array('page_size','/^[0-9]+$/','分页数必须为非负整数',Model::MUST_VALIDATE,'regex',Model:: MODEL_BOTH),
				array('nav_num','1,10','首页导航数必须在1到10之间',Model::MUST_VALIDATE,'between',Model:: MODEL_BOTH),
				array('rotation_time','0,20','首页轮播器时间必须在1到10之间',Model::MUST_VALIDATE,'between',Model:: MODEL_BOTH),
				array('rotation_num','1,5','首页轮播器图片数目必须在1到5之间',Model::MUST_VALIDATE,'between',Model:: MODEL_BOTH),
				array('text_adver_num','/^[0-9]+$/','文字广告数目必须为非负整数',Model::MUST_VALIDATE,'regex',Model:: MODEL_BOTH),
				array('header_adver_num','/^[0-9]+$/','头部图片广告数目必须为非负整数',Model::MUST_VALIDATE,'regex',Model:: MODEL_BOTH),
				array('siderbar_adver_num','/^[0-9]+$/','侧边栏广告数目必须为非负整数',Model::MUST_VALIDATE,'regex',Model:: MODEL_BOTH),
		
		);
	}
?>